/**
 * 
 */
package com.hoopchina.ui.search;

import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

/**
 * 收索历史item删除按钮点击监听
 * @author Guo Baiyu
 *
 */
public class SearchHistoryDeleteItemButtonClickListener implements OnClickListener {

    SearchView mObserver;
    /**
     * 
     */
    public SearchHistoryDeleteItemButtonClickListener(SearchView observer) {
        mObserver = observer;
    }

    /* (non-Javadoc)
     * @see android.view.View.OnClickListener#onClick(android.view.View)
     */
    @Override
    public void onClick( View v ) {
        // TODO Auto-generated method stub
       String searchHistoryItem = (String)((Button)v).getTag();
       mObserver.onDeleteItemButtonClick(searchHistoryItem);
    
    }

}
